
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@include file="page/head.jsp" %>
<html>
<head>
    <title>Title</title>
</head>
<body>

<h1>${msg},还有<span id="count">5</span>秒回到首页</h1>
<a href="/emp?method=getEmpsByMaps">回到首页</a>
<script>

    function countDown() {
        var count = parseInt($("#count").text());
        count--;
        if (count == 0) {
            location.href = "/emp?method=getEmpsByMaps";
        }
        $("#count").text(count);
    }
    setInterval(countDown,1000);

</script>
</body>
</html>
